# 关系运算
a = "hello"
b = "world"
print(a < b)
print(a <= b)
print(a > b)
print(a >= b)
num1 = 1.0
num2 = 1.0
print(num1 == num2)
print(0.1 + 0.2)
print(0.3)
c = 0.1 + 0.2
d = 0.3
# 这个代码是检查c - d的差是否是一个非常小的数，是否在误差范围内
print(-0.000001<(c - d)<0.000001)